﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShoppingCart.ascx.cs"
    Inherits="views_ShoppingCart" %>

<div id="shoppingCartDetails">
    <div class="detailsHeader">
        Shopping Cart</div>
    <div class="innerContainer">
        <table style="width: 733px">
            <tbody runat="server" id="Cart">
                <tr class="lineItemHeaderRow">
                    <th class="style5">
                        Product
                    </th>
                    <th class="style6">
                        Qty
                    </th>
                    <th class="style3">
                        Price
                    </th>
                    <th class="style4">
                        Total Price
                    </th>
                    <th class="style1">
                        
                    </th>
                </tr>
                <asp:Repeater ID="rpt_giohang" runat="server" 
                    onitemcommand="rpt_giohang_ItemCommand">
                    <ItemTemplate>
                        <tr class="lineItemRows ">
                            <td class="productCell">
                                <div class="lineItemProductImage">
                                    <a href="index.aspx?proid=<%# Eval("ID") %>">
                                        <img style="border-width: 0px;" alt="" src='<%# Eval("Image","images/products/{0}") %>'></a>
                                </div>
                                <div class="lineItemProdDesc">
                                    <div class="lineItemProductName">
                                        <a href="index.aspx?proid=<%# Eval("ID") %>"><%# Eval("DisplayName")%></a>
                                    </div>
                                </div>
                            </td>
                            <td class="qtyCell">
                                <asp:TextBox ID="txtQuantity" runat="server" Width="50"></asp:TextBox>
                            </td>
                            <td class="priceCell">
                                <div class="featurePrice">
                                    <span class="strikePrice">VND <%# Eval("Price") %></span> <span class="salePrice hasStrike">VND <%# Eval("NewPrice") %></span>
                                </div>
                                
                            </td>
                            <td class="totalCell">
                                VND <%# Eval("total")%>
                            </td>
                            <td>
                                
                                <asp:LinkButton ID="lbtUpdate" CommandArgument='<%# Eval("ID") %>' CommandName="UpdateQuantity"
                                    runat="server">Cập nhật số lượng</asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div class="ClearFloats">
        </div>
    </div>
    <div id="promoCodeAndSubTotalContainer">
        <!-- No PromoCode Box on Shopping Cart Page for PFC customers without the above ref.-->
        <div class="subTotalContainer">
            <span class="priceTotals">Subtotal: $29.99</span><br>
        </div>
        <div class="ClearFloats">
        </div>
    </div>
</div>
